export const pageConfig = {
	currentKey: 'index',
	sizeKey: 'size',
	params: {
		index: 0,
		size: 10,
	},
	getTotalPagesNum: (res) => {
		return res?.total || 999
	},
	handleData: (res) => {
		return res.data || []
	}
}

export const DICT = {
	UNPAY: 1,
	PAYED: 2,
	// UNSEND: 2,
	UNACCEPT: 3,
	UNCOMMENT: 4,
	SUCCESS: 5,
	FAIL: 6,
	ALL: 0,
	REFUND: 7,
	COCREATION: 'COCREATION',
	ORDER: 'ORDER',
	COMMENT: 'COMMENT',
	TOSETTING: 97,
	TOEAT: 98,
	TOPLAY: 99
}

export const txtMap = {
	[DICT.UNPAY]: '待付款',
	[DICT.PAYED]: '已完成',
	// [DICT.UNSEND]: '待发货',
	[DICT.UNACCEPT]: '待确认',
	[DICT.UNCOMMENT]: '待评价',
	[DICT.SUCCESS]: '成功',
	[DICT.FAIL]: '失败',
	[DICT.ALL]: '全部',
	[DICT.REFUND]: '退款',
	[DICT.TOSETTING]: '去入住',
	[DICT.TOEAT]: '去吃喝',
	[DICT.TOPLAY]: '去逛逛',
}